package demo01;
import java.util.Random;
public class NonredundantRandomNum {
	public static void main(String[] args){
		Random RandomNum = new Random();
		int[] Storage = new int[6];
		for(int i = 0; i<6; i++){
			Storage[i] = RandomNum.nextInt(33)+1;
			for(int j = 0; j<i; j++){
				if(Storage[i] == Storage[j]){
					Storage[i] = 0;
					i--;
				}
			}
		}
		for(int i = 0; i<6; i++){
			System.out.println(Storage[i]);
		}
		
	}
}
